import request from '@/utils/request'

let InfoApi = {
  /*列表*/
  infolist(data, errorback) {
    return request._post('/shop/info.info/index', data, errorback);
  },
  /*添加内容*/
  toAddInfo(data, errorback) {
    return request._get('/shop/info.info/add', data, errorback);
  },
  /*添加内容*/
  addInfo(data, errorback) {
    return request._post('/shop/info.info/add', data, errorback);
  },
  /*内容详情*/
  toEditInfo(data, errorback) {
    return request._get('/shop/info.info/edit', data, errorback);
  },
  /*编辑内容*/
  editInfo(data, errorback) {
    return request._post('/shop/info.info/edit', data, errorback);
  },
  /*删除内容*/
  deleteInfo(data, errorback) {
    return request._post('/shop/info.info/delete', data, errorback);
  },
  /*删除内容*/
  infoSet(data, errorback) {
    return request._post('/shop/info.info/state', data, errorback);
  },
}
export default InfoApi;
